package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/17 9:58
 * @Describe:用户
 */
@ApiModel(value = "用户：User")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_user")
public class User implements Serializable {
    private static final long serialVersionUID = -8639764185487285107L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 姓名
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    @ApiModelProperty(value = "昵称")
    private String nickname;

    /**
     * 登录名
     */
    @TableField(value = "account")
    @ApiModelProperty(value = "登录名")
    private String account;

    /**
     * 密码，加密后的密码
     */
    @TableField(value = "password")
    @ApiModelProperty(value = "密码，加密后的密码")
    private String password;

    /**
     * 性别：1男 0女
     */
    @TableField(value = "gender")
    @ApiModelProperty(value = "性别：1男 0女")
    private Boolean gender;

    /**
     * 出生年月
     */
    @TableField(value = "birth")
    @ApiModelProperty(value = "出生年月")
    private LocalDate birth;

    /**
     * 头相
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value = "头相")
    private String avatar;

    /**
     * 照片，可以有多个，多个照片之间以,分隔
     */
    @TableField(value = "imgs")
    @ApiModelProperty(value = "照片，可以有多个，多个照片之间以,分隔 ")
    private String imgs;

    /**
     * 联系电话
     */
    @TableField(value = "tel")
    @ApiModelProperty(value = "联系电话")
    private String tel;

    /**
     * 电子邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "电子邮箱")
    private String email;

    /**
     * QQ
     */
    @TableField(value = "qq")
    @ApiModelProperty(value = "QQ")
    private String qq;

    /**
     * 微信
     */
    @TableField(value = "wechat")
    @ApiModelProperty(value = "微信")
    private String wechat;

    /**
     * 个人主页
     */
    @TableField(value = "home_page")
    @ApiModelProperty(value = "个人主页")
    private String homePage;

    /**
     * 户籍所在地
     */
    @TableField(value = "hu_ji_id")
    @ApiModelProperty(value = "户籍所在地")
    private Integer huJiId;

    /**
     * 现在居住地址
     */
    @TableField(value = "ju_zhu_id")
    @ApiModelProperty(value = "现在居住地址")
    private Integer juZhuId;

    /**
     * 显示的优先级
     */
    @TableField(value = "priority")
    @ApiModelProperty(value = "显示的优先级")
    private Integer priority;

    /**
     * 激活码
     */
    @TableField(value = "salt")
    @ApiModelProperty(value = "激活码")
    private String salt;

    /**
     * 状态：1正常，2禁用，3删除
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态：1正常，2禁用，3删除")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 角色编号
     */
    @TableField(value = "role_id")
    @ApiModelProperty(value = "角色编号")
    private Integer roleId;
}